/* 常用初始化样式 */
body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div{margin:0;padding:0;border:0;} 

body{
    margin: 0 auto;
    width: 100%;
    min-width:320px;
    max-width: 540px;
    background: #f2f2f2;
    font: normal 14px/1.5 Tahoma,"  Lucida Grande",Verdana,"Microsoft Yahei",STXihei,hei;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    color: #000;
    
}

/*点击高亮我们需要清除清除  设置为transparent 完成透明*/



/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/

input {
    -webkit-appearance: none;
}


/*禁用长按页面时的弹出菜单*/

img,
a {
    -webkit-touch-callout: none;
    

}

a {
    color: #222;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;

}

img {
    vertical-align: middle;
}

div {
    /* css3 盒子模型 */
    box-sizing: border-box;
}

.clearfix:after {
    content: "";
    display: block;
    line-height: 0;
    visibility: hidden;
    height: 0;
    clear: both;
}

/* 搜索模块 */
.search-index{
    /* 固定定位和父亲没有关系,盒子要给宽度 */
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform:translateX(-50%) ;
    transform: translateX(-50%);
    width: 100%;
    min-width:320px;
    max-width: 540px;
    background-color:#f6f6f6;
    height: 50px;
    align-items: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
.search{
    height: 25px;
    border: 1px solid #ccc;
    flex:1;
    margin: 7px 10px;
    border-radius: 5px;
    padding-left: 26px;
    color: #666;
    line-height: 24px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.search::before{
    content:"";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 15px;
    height: 15px;
    background: url(../images/sprite.png) no-repeat -59px -279px;
    background-size:104px auto ;

}

.user{
    text-align: center;
    width: 40px;
    height: 45px;
    font-size: 14px;
    color: #2eaae0;
    line-height: 15px;

}
.user::before{
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/sprite.png) no-repeat -59px -194px;
    background-size:104px auto ;
    margin:2px auto 0;
}

.focus img{
    width: 100%;
    padding-top: 50px;
}

/* 局部导航栏 */

.local-nav ul{
    display: flex;
    height: 64px;
    margin: 3px 4px;
    background-color: #fff;
    border-radius: 8px;}



.local-nav li{
    flex: 1;
}
.local-nav a{
    display: flex;
    flex-direction: column;
    font-size: 12px;
    /* 侧轴居中对齐 */
    align-items: center; 
    margin-top: 8px;
 
}

.local-nav li [class^="local-nav-icon"]{
    width: 32px;
    height: 32px;
    background-color: pink;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
   
}

.local-nav li .local-nav-icon2{
    background-position: 0 -32px;
}
.local-nav li .local-nav-icon3{
    background-position: 0 -64px;
}
.local-nav li .local-nav-icon4{
    background-position: 0 -96px;
}
.local-nav li .local-nav-icon5{
    background-position: 0 -128px;
}

/* 主nav */
nav{
    border-radius: 8px;
    margin: 0 4px 3px;
    overflow: hidden;
    
}
nav .nav-common{
    display: flex;
    height: 88px;
    
}
nav .nav-common:nth-child(1){background:-webkit-linear-gradient(left,#FA5A55,#FA994D);}
nav .nav-common:nth-child(2){background:-webkit-linear-gradient(left,#4B90ED,#53BCED);}
nav .nav-common:nth-child(3){background:-webkit-linear-gradient(left,#34C2A9,#6CD559);}

.nav-common:nth-child(2){
    margin: 1px 0;
}

nav .nav-common .nav-items{
    display: flex;
    flex:1;
    flex-direction: column;

    text-align: center;
    line-height: 44px;
}
nav .nav-common .nav-items:nth-child(-n+2){
    border-right: 1px solid #fff;
}

nav .nav-common  a{
    color: #fff;
    flex:1;
    font-size: 14px;
    text-shadow: 1px 1px rgba(0,0,0,0.2);
}
nav .nav-common .nav-items a:first-child{
border-bottom: 1px solid #fff;
}


/* 侧nav */

.subnav-entry ul{
    display: flex;
    flex-wrap: wrap;
    height: 116px;
    margin: 0px 4px;
    background-color: #fff;
    border-radius: 8px;}



.subnav-entry li{
    flex: 20%;
}
.subnav-entry a{
    display: flex;
    flex-direction: column;
    font-size: 12px;
    /* 侧轴居中对齐 */
    align-items: center; 
    margin-top: 8px;
 
}

.subnav-entry li [class^="sub-icon"]{
    width: 32px;
    height: 32px;
    background-color: pink;
    background: url(../images/subnav-bg.png) no-repeat 0 0;
    background-size: 32px auto;
   
}

/* sales-box */

.sales-box {
    border-top: 1px solid #bbb;
    background-color: #fff;
    margin: 4px;
}

.sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}

.sales-hd h2 {
    position: relative;
    text-indent: -999px;
    overflow: hidden;
}

.sales-hd h2::after {
    position: absolute;
    top: 5px;
    left: 8px;
    content: "";
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px auto;
}

.more {
    position: absolute;
    right: 5px;
    top: 0px;
    background: -webkit-linear-gradient(left, #FF506C, #FF6BC6);
    border-radius: 15px;
    padding: 3px 20px 3px 10px;
    color: #fff;
}

.more::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

.row {
    display: flex;
}

.row a {
    flex: 1;
    border-bottom: 1px solid #eee;
}

.row a:nth-child(1) {
    border-right: 1px solid #eee;
}

.row a img {
    width: 100%;
}